import instance from '../axios.service.js';
export default {
    getCode: (data) => instance.post(`/app-api/member/auth/send-sms-code`, data),// 获取登录的手机验证码
    login: (data) => instance.post(`/app-api/member/auth/sms-login`, data),// 登录
    hotList: (data) => instance.post(`/aispire/hot/display`, data),// 热点信息搜索&展示接口
    createTopic: (data) => instance.post(`/aispire/topic/create`, data),// 新建ai会话
    historyTopicList: (data) => instance.post(`/aispire/topic/list`, data),// 历史会话列表
    historyTopicDetail: (data) => instance.post(`/aispire/topic/display`, data),// 历史会话内容展示
    historyTopicRename: (data) => instance.post(`/aispire/topic/rename`, data),// 历史会话重命名
    createPortrait: (data) => instance.post(`/aispire/portrait/create`, data),// 用户画像创建
    getPortrait: (data) => instance.post(`/aispire/portrait/get`, data),// 获取用户画像
    createUserInfo: (data, formData) => instance.post(`/aispire/nickname_icon/create?uid=${data.uid}&nickname=${data.nickname}`, formData, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    }),// 用户头像昵称等信息保存
    getUserInfo: (data) => instance.post(`/aispire/nickname_icon/get`, data),// 获取用户头像昵称等信息
}
